<template>
    <div >
        <div>
           
            <SwiperItem  :key='index' 
       :a = 'a' >
       
       
            </SwiperItem>
         <!-- 多图路径转数组 -->
           <!-- <div>{{a[0]}}</div> -->
      <div class="userinfo"> <img :src='sitem.avatarurl'/></div>
      <div>{{sitem.wx_name}}</div>
      <div class="time">{{sitem.create_time}}</div>
          <p class="x-sbiao" >{{sitem.sbiao}}</p>

            <div>
                <span class="x-szheng" >{{sitem.szheng}}</span>
            </div>

            </div>
           
    </div>

</template>

<script>

import SwiperItem from '@/components/SwiperItem';

export default {

    // props: ['strategy'],

  components: {
    SwiperItem,
  },
  
    data(){
        return{
         userinfo: {},
          sitem:[],    
          a:[]
        }
    },
   
    mounted(){
      // console.log(this);
      // console.log("sitem内有",this.$mp.query.sitem)
      this.sitem=JSON.parse(this.$mp.query.sitem)
      // console.log("sitem内有1",this.sitem.nssrc)
      const a=this.sitem.nssrc.split(',')
      //a是轮播图
      this.a=a
      // const b=this.sitem.szheng.split('\r\n')
      // //a是轮播图
      // this.b=b
      console.log("xq从后台返回的记录数据：",this.sitem)
      console.log("xq从后台返回的记录数据：",this.sitem.create_time)
 
 
      // console.log("数组",a)
  },
//     methods: {

//     //收藏页面
//     async getshuzu () {
//     //调用后台数据时显示「加载中」提示框

   
 
//     //需要传到后台的数据
    
  
//   },
  




//      },


// //授权
// //开启页面既执行
//   onShow() {
    
//      this. getshuzu()
//     //  this.getindex()
//   },


}
</script>

<style lang="scss">
.x-sbiao{
  position:absolute ;
  top: 380px;
  margin-left: 30px;
  font-weight:bold;
  font-family:"宋体";
  font-size:20px
}
.x-szheng{
position:relative ;
  top: 80px;
  margin-left: 10px;
  margin-right: 10px;
  font-family:"楷体";
  font-size:18px
}
.userinfo {
    padding-bottom: 5px;
    float: left;
    font-family:"楷体";
    img {
      width: 120rpx;
      height: 120rpx;
      margin: 10rpx;
      border-radius: 1px;
      border: 1px #d0d0d0 solid;
    }
   
}
 .time{
      color: #cccccc;
       font-family:"楷体";
       font-size: 15px;
       margin-top: 5px;
       
    }
</style>
